#ifndef _UFO_COMMON_RESOURCE_H_
#define _UFO_COMMON_RESOURCE_H_

#include "handle.h"
#include "texture.h"
#include "image.h"
#include "font.h"

DECLARE_HANDLE(UFO_Resource);

UFO_Resource ufoResourceGetDefault();

UFO_Resource ufoResourceAddFromXML(const char *filename);

UFO_Texture ufoResourceGetTexture(const char *textureID);

IMAGE* ufoResourceGetImage(const char *imageID);

UFO_Font ufoResourceGetFont(const char *id);

int ufoResourceAddTexture(UFO_Texture texture, char *textureID);

int ufoResourceAddImage(IMAGE *image, char *imageID);

int ufoResourceAddFont(UFO_Font font, char *id);

//int ufoResourceAddScript(char *id, const char* script);

#endif